import request from '@/utils/request'

// 提交信审资料规则
export function getSubmitRules(ruleId) {
    return request({
        url: `/creditReview/creditReview/getSubmitRules/${ruleId}`,
        method: 'get'
    })
}

// 提交/重新提交信审
export function creditReviewOrder(data) {
  return request({
    url: '/creditReview/order',
    method: 'post',
    data:data
  })
}

// 待补充资料
export function getAddFile(applicationNo) {
  return request({
    url: `/creditReview/order/getAddFile/${applicationNo}`,
    method: 'get'
  })
}




// 额度申请详情
export function getCrLimitDetails(applicationNo) {
  return request({
    url: `/creditReview/order/getCrLimitDetails/${applicationNo}`,
    method: 'get'
  })
}

// 信审详情
export function getRecordsDetails(applicationNo) {
  return request({
    url: `/creditReview/order/getRecordsDetails/${applicationNo}`,
    method: 'get'
  })
}

// 查看信审资料详情
export function getFileDetails(applicationNo) {
  return request({
    url: `/creditReview/order/getFileDetails/${applicationNo}`,
    method: 'get'
  })
}

// 启用前校验
export function creditReviewInvalid(data) {
    return request({
        url: '/creditReview/creditReviewInvalid',
        method: 'post',
        data:data
    })
}

// 根据客户信息查询买受人关联列表
export function getVendeeList(data) {
    return request({
        url: '/customerCorrelationVendee/getVendeeList',
        method: 'post',
        data:data
    })
}
